-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - update wireframe rendering to new renderer #3193
Conversation
descriptor.vertex.shader = self.shader.clone_weak(); | ||
descriptor.fragment.as_mut().unwrap().shader = self.shader.clone_weak(); | ||
descriptor.primitive.polygon_mode = PolygonMode::Line; | ||
descriptor.depth_stencil.as_mut().unwrap().bias.slope_scale = 1.0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't actually usable right now because the |
I would recommend having wireframe in |
# Objective The new renderer does not support any options yet for wgpu. These are needed for example for rendering wireframes (see #3193). ## Solution I've ported WgpuOptions to bevy_render2. The defaults match the defaults that were used before this PR (meaning, some specific options when target_arch = wasm32). Additionally, I removed `Auto` from WgpuBackends and added `Primary`. The default will use primary or GL based on the target_arch.
@jakobhellermann should this be updated now that #3282 has been merged, exposing |
The PR is unblocked in that regard, but I'm not sure it can reasonably do anything with the The old implementation doesn't solve this and requires the user to enable the |
The other remaining issue is whether this should live in |
Yeah I agree that |
bors r+ |
Updates the wireframe rendering initialliy implemented in #562 to the new renderer. It lives in `bevy_pbr2` instead of `bevy_render2` because that way it can reuse the `MeshPipeline`.
Updates the wireframe rendering initialliy implemented in #562 to the new renderer.
It lives in
bevy_pbr2
instead ofbevy_render2
because that way it can reuse theMeshPipeline
.